import { createApp } from "vue";

import App from "./App.vue";

import router from "./router";

// import * as API from "./http/api";

import { createPinia } from "pinia"; // 引入pinia
import piniaPluginPersistedstate from "pinia-plugin-persistedstate"; // 引入数据持久化插件

import "amfe-flexible"; // 引入适配

import "normalize.css/normalize.css"; // 引入重置样式

import Vant from "vant"; // 引入vant
import "vant/lib/index.css"; //引入vant

import moment from "moment"; // 引入时间插件
const app = createApp(App);
// app.config.globalProperties.$API = API;
const pinia = createPinia();

pinia.use(piniaPluginPersistedstate); // 使用数据持久化
app.use(Vant); // 使用vant

app.use(pinia); // app使用pinia
app.use(router);
app.use(moment);
app.mount("#app");
